@import '/static/common/less-config.less';
.action-container {
    text-align: right;
    margin: 15px 0;
    .upload {
        background: #ec8879;
        color: #fff;
    }
    .icon-newfolder {
        margin-right: 6px;
    }
    .icon-trash {
        margin-right: 6px;
        opacity: 0.5;
    }
    .btn {
        border-radius: 2px;
    }
    .search-container {
        text-align: left;
        display: inline-block;
        border: solid 1px #aaa;
        width: 240px;
        input {
            width: 200px;
            margin-left: 5px;
            border: 0;
            height: 25px
        }
        .icon-search {
            cursor: pointer;
        }
    }
}

.selection-container {
    background: #f6f6f6;
    padding: 10px;
    line-height: 24px;
    .icon{
    	width: 25px;
    }
    select {
        border: 0;
        color: #000;
        option {
            color: #000
        }
    }
    .btn {
        color: #999;
        border-radius: 2px;
        padding: 0px 10px;
        padding-right: 0px;
        float: right;
    }
    .btn:hover,
    .btn:focus,
    .btn:active {
        background: #fff;
        box-shadow: none;
        color: #999;
    }
}
.f-name{
    cursor: pointer;
}
.material-container-outer {
    min-height: 400px;
    width: 100%;
    .material-container {
        &>li {
        	&:nth-child(6n){
        		margin-right: 0px;
        	}
            width: 140px;
            height: 170px;
            box-sizing: border-box;
            border: solid 1px #ccc;
            float: left;
            margin-top: 10px;
            margin-right: 14px;
            margin-bottom: 10px;
            &.selected {
                border-color: @blue;
                .title-part {
                    background: @blue;
                    color: #fff;
                }
            }
            .top-part {
                width: 100%;
                height: 140px;
                text-align: center;
                position: relative;
                cursor: pointer;
                
                .img-s {
                    display: inline-block;
                    vertical-align: middle;
                }
                &:hover {
                    .actions {
                        display: block;
                    }
                }
                .actions {
                    position: absolute;
                    height: 30px;
                    width: 100%;
                    bottom: 0px;
                    display: none;
                    background: rgba(0, 0, 0, 0.8);
                    li {
                        width: 33.333%;
                        float: left;
                        .copy-pic,
                        .copy-code,
                        .show-detail {
                            width: 30px;
                            height: 30px;
                            margin: 0px auto;
                            cursor: pointer;
                            position: relative;
                            &:hover {
                                .show-tips {
                                    top: 40px;
                                    left: 20px;
                                    width: 240px;
                                    display: block;
                                }
                            }
                        }
                        .copy-pic {
                            background: url(img/copy-pic.png) no-repeat center center;
                            &:hover {
                                background: rgba(255, 255, 255, 0.5) url(img/copy-pic.png) no-repeat center center;
                            }
                        }
                        .copy-code {
                            background: url(img/copy-code.png) no-repeat center center;
                            &:hover {
                                background: rgba(255, 255, 255, 0.5) url(img/copy-code.png) no-repeat center center;
                            }
                        }
                        .show-detail {
                            background: url(img/show-detail.png) no-repeat center center;
                            &:hover {
                                background: rgba(255, 255, 255, 0.5) url(img/show-detail.png) no-repeat center center;
                            }
                        }
                    }
                }
            }
            &.folder {
            	position: relative;
                .top-part {
                    background: url(img/folder-bg.png) no-repeat center center;
                }
                &:hover {
                    .show-tips {

                        top: 40%;
                        right: -50px;
                        display: block;
                        .icon{
                        	width: 25px;
                        }
                        div{
                        	text-align: left;
                        }
                        width:100px;text-align:center
                    }
                }
            }
            .title-part {
                line-height: 30px;
                text-align: center;
                color: #aaa;
            }
        }
    }
}
